<template>
	<view>
		<button @click="getUserInfo">获取用户信息</button>
	</view>
</template>

<script setup>
	const getUserInfo = () => {
		uni.getUserProfile({
			desc: '考试需要',
			success: resp => {
				console.log(resp)
			}
		})
	}
	
</script>

<style lang="scss">

</style>
